
package com.one.odf.model;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for competitorResultsType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="competitorResultsType"&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *       &lt;sequence&gt;
 *         &lt;element name="Description" type="{}competitorDescriptionType" minOccurs="0"/&gt;
 *         &lt;element name="ExtCompetitor" type="{}messageType" minOccurs="0"/&gt;
 *         &lt;element name="ExtResults" type="{}messageType" minOccurs="0"/&gt;
 *         &lt;element name="Coaches" type="{}coachesType" minOccurs="0"/&gt;
 *         &lt;element name="EventUnitEntry" type="{}eventUnitEntryType" maxOccurs="unbounded" minOccurs="0"/&gt;
 *         &lt;element name="StatsItems" type="{}resultStatsType" minOccurs="0"/&gt;
 *         &lt;element name="Composition" type="{}compositionResultsType" minOccurs="0"/&gt;
 *         &lt;element name="Opponent" type="{}opponentResultsType" maxOccurs="unbounded" minOccurs="0"/&gt;
 *       &lt;/sequence&gt;
 *       &lt;attribute name="Code" type="{http://www.w3.org/2001/XMLSchema}string" /&gt;
 *       &lt;attribute name="Type" type="{}competitorTypeType" /&gt;
 *       &lt;attribute name="Bib" type="{http://www.w3.org/2001/XMLSchema}string" default="" /&gt;
 *       &lt;attribute name="Organisation" type="{http://www.w3.org/2001/XMLSchema}string" default="" /&gt;
 *       &lt;attribute name="Current" type="{http://www.w3.org/2001/XMLSchema}string" default="" /&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "competitorResultsType", propOrder = {
    "description",
    "extCompetitor",
    "extResults",
    "coaches",
    "eventUnitEntry",
    "statsItems",
    "composition",
    "opponent"
})
public class CompetitorResultsType {

    @XmlElement(name = "Description")
    protected CompetitorDescriptionType description;
    @XmlElement(name = "ExtCompetitor")
    protected String extCompetitor;
    @XmlElement(name = "ExtResults")
    protected String extResults;
    @XmlElement(name = "Coaches")
    protected CoachesType coaches;
    @XmlElement(name = "EventUnitEntry")
    protected List<EventUnitEntryType> eventUnitEntry;
    @XmlElement(name = "StatsItems")
    protected ResultStatsType statsItems;
    @XmlElement(name = "Composition")
    protected CompositionResultsType composition;
    @XmlElement(name = "Opponent")
    protected List<OpponentResultsType> opponent;
    @XmlAttribute(name = "Code")
    protected String code;
    @XmlAttribute(name = "Type")
    protected CompetitorTypeType type;
    @XmlAttribute(name = "Bib")
    protected String bib;
    @XmlAttribute(name = "Organisation")
    protected String organisation;
    @XmlAttribute(name = "Current")
    protected String current;

    /**
     * Gets the value of the description property.
     * 
     * @return
     *     possible object is
     *     {@link CompetitorDescriptionType }
     *     
     */
    public CompetitorDescriptionType getDescription() {
        return description;
    }

    /**
     * Sets the value of the description property.
     * 
     * @param value
     *     allowed object is
     *     {@link CompetitorDescriptionType }
     *     
     */
    public void setDescription(CompetitorDescriptionType value) {
        this.description = value;
    }

    /**
     * Gets the value of the extCompetitor property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getExtCompetitor() {
        return extCompetitor;
    }

    /**
     * Sets the value of the extCompetitor property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setExtCompetitor(String value) {
        this.extCompetitor = value;
    }

    /**
     * Gets the value of the extResults property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getExtResults() {
        return extResults;
    }

    /**
     * Sets the value of the extResults property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setExtResults(String value) {
        this.extResults = value;
    }

    /**
     * Gets the value of the coaches property.
     * 
     * @return
     *     possible object is
     *     {@link CoachesType }
     *     
     */
    public CoachesType getCoaches() {
        return coaches;
    }

    /**
     * Sets the value of the coaches property.
     * 
     * @param value
     *     allowed object is
     *     {@link CoachesType }
     *     
     */
    public void setCoaches(CoachesType value) {
        this.coaches = value;
    }

    /**
     * Gets the value of the eventUnitEntry property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the eventUnitEntry property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getEventUnitEntry().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link EventUnitEntryType }
     * 
     * 
     */
    public List<EventUnitEntryType> getEventUnitEntry() {
        if (eventUnitEntry == null) {
            eventUnitEntry = new ArrayList<EventUnitEntryType>();
        }
        return this.eventUnitEntry;
    }

    /**
     * Gets the value of the statsItems property.
     * 
     * @return
     *     possible object is
     *     {@link ResultStatsType }
     *     
     */
    public ResultStatsType getStatsItems() {
        return statsItems;
    }

    /**
     * Sets the value of the statsItems property.
     * 
     * @param value
     *     allowed object is
     *     {@link ResultStatsType }
     *     
     */
    public void setStatsItems(ResultStatsType value) {
        this.statsItems = value;
    }

    /**
     * Gets the value of the composition property.
     * 
     * @return
     *     possible object is
     *     {@link CompositionResultsType }
     *     
     */
    public CompositionResultsType getComposition() {
        return composition;
    }

    /**
     * Sets the value of the composition property.
     * 
     * @param value
     *     allowed object is
     *     {@link CompositionResultsType }
     *     
     */
    public void setComposition(CompositionResultsType value) {
        this.composition = value;
    }

    /**
     * Gets the value of the opponent property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the opponent property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getOpponent().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link OpponentResultsType }
     * 
     * 
     */
    public List<OpponentResultsType> getOpponent() {
        if (opponent == null) {
            opponent = new ArrayList<OpponentResultsType>();
        }
        return this.opponent;
    }

    /**
     * Gets the value of the code property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getCode() {
        return code;
    }

    /**
     * Sets the value of the code property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setCode(String value) {
        this.code = value;
    }

    /**
     * Gets the value of the type property.
     * 
     * @return
     *     possible object is
     *     {@link CompetitorTypeType }
     *     
     */
    public CompetitorTypeType getType() {
        return type;
    }

    /**
     * Sets the value of the type property.
     * 
     * @param value
     *     allowed object is
     *     {@link CompetitorTypeType }
     *     
     */
    public void setType(CompetitorTypeType value) {
        this.type = value;
    }

    /**
     * Gets the value of the bib property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getBib() {
        if (bib == null) {
            return "";
        } else {
            return bib;
        }
    }

    /**
     * Sets the value of the bib property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setBib(String value) {
        this.bib = value;
    }

    /**
     * Gets the value of the organisation property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getOrganisation() {
        if (organisation == null) {
            return "";
        } else {
            return organisation;
        }
    }

    /**
     * Sets the value of the organisation property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setOrganisation(String value) {
        this.organisation = value;
    }

    /**
     * Gets the value of the current property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getCurrent() {
        if (current == null) {
            return "";
        } else {
            return current;
        }
    }

    /**
     * Sets the value of the current property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setCurrent(String value) {
        this.current = value;
    }

}
